package com.huatai.bi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 过滤条件
 * @TableName tb_filter_condition
 */
@TableName(value ="tb_filter_condition")
@Data
public class FilterConditionEntity {

	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@ApiModelProperty("主键")
	private Long id;

	@TableField(value = "title")
	@ApiModelProperty(value = "名称",required = true)
	private String title;

	@TableField(value = "type")
	@ApiModelProperty(value = "类型 string,number,date",required = true)
	private String type;

	@TableField(value = "input_type")
	@ApiModelProperty(value = "输入框类型  input select date",required = true)
	private String inputType;

	@TableField(value = "input_num")
	@ApiModelProperty(value = "输入框数量",required = true)
	private Integer inputNum;

	@TableField(value = "exp")
	@ApiModelProperty(value = "表达式",required = true)
	private String exp;

	@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
	@TableField(value = "sort")
	@ApiModelProperty(value = "排序",required = true)
	private Integer sort;

	@TableField(value = "select_type")
	@ApiModelProperty(value = "下拉类型  多选:multiple  单选:one")
	private String selectType;
}
